package demo02;

public class Cylinder extends Circle{
    private double h = 1;

    public double getH() {
        return h;
    }

    public void setH(double h) {
        this.h = h;
    }
    public double v(){
        double v = s() * h;
        return v;
    }
}
